import { useUserStore } from './modules/user'
import { useProductStore } from './modules/product'
// import { useDictStore } from './modules/dict'
import { createPinia } from 'pinia'
import Persistent from './plugins/persistent'
const pinia = createPinia()
pinia.use(Persistent)

const store = {}

export const registerStore = (app) => {
  app.use(pinia)
  store.user = useUserStore()
  store.product = useProductStore()
  // store.dict = useDictStore()
}

export default store
